<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 
	id="WebApp_ID" version="2.5">
  <display-name>Hotel Organizer</display-name>
  
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>
  
  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>
            /spring/application-context.xml
        </param-value>
  </context-param>
  
  <filter>
    <filter-name>encoding-filter</filter-name>
    <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
    <init-param>
      <param-name>encoding</param-name>
      <param-value>UTF-8</param-value>
    </init-param>
  </filter>
  
  <filter-mapping>
    <filter-name>encoding-filter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  
  <servlet>
    <servlet-name>simple-form</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        	<init-param>
      		<param-name>contextConfigLocation</param-name>
      		<param-value></param-value>
   	 	</init-param>
  </servlet>
  
    <servlet>
        <servlet-name>Kunden2pdf</servlet-name>
        <servlet-class>de.hdu.pms.ho.ctrl.Kunden2pdf</servlet-class>
    </servlet>
    
     <servlet>
        <servlet-name>Arbeitsplan2pdf</servlet-name>
        <servlet-class>de.hdu.pms.ho.ctrl.Arbeitsplan2pdf</servlet-class>
    </servlet>
  
  <servlet-mapping>
    <servlet-name>simple-form</servlet-name>
    <url-pattern>*.html</url-pattern>
  </servlet-mapping>
  
  <servlet-mapping>
        <servlet-name>Kunden2pdf</servlet-name>
        <url-pattern>/Kunden2pdf</url-pattern>
  </servlet-mapping>
  
  <servlet-mapping>
        <servlet-name>Arbeitsplan2pdf</servlet-name>
        <url-pattern>/Arbeitsplan2pdf</url-pattern>
  </servlet-mapping>
  
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.jsp</welcome-file>
  </welcome-file-list>
  
  <security-constraint>
		<web-resource-collection>
			<web-resource-name>protected area</web-resource-name>
			<url-pattern>/protected/*</url-pattern>
			<http-method>GET</http-method>
			<http-method>POST</http-method>
			<http-method>DELETE</http-method>
			<http-method>PUT</http-method>
		</web-resource-collection>
		<auth-constraint>
			<role-name>mitarbeiter</role-name>
		</auth-constraint>
	</security-constraint>
	<login-config>
		<auth-method>BASIC</auth-method>
		<form-login-config>
			<form-login-page>/protected/login.html</form-login-page>
			<form-error-page>/open/home.html</form-error-page>
		</form-login-config>
	</login-config>
	<security-role>
		<role-name>mitarbeiter</role-name>
	</security-role>
  
 </web-app>